import { createApp } from 'vue';
import './styles/common.css';
import App from './App.vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import router from './router/index';
import MyCom from './components/MyCom.vue';
import Mitt from './components/Mitt.vue';
import mall from './views/mall/index.vue';
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
const pinia=createPinia();
pinia.use(piniaPluginPersistedstate)
import './mocks/index'


const app = createApp(App);
app.use(ElementPlus);
app.use(router);
app.use(pinia);
app.component('MyCom', MyCom); // 建议使用大驼峰命名
app.component('Mitt', Mitt);
app.mount('#app');